﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;


namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        #region Members

        #endregion Members

        #region Construct

        public MainWindow()
        {
            InitializeComponent();
            initPage();
        }

        #endregion Construct 

        #region Methods

        private void initPage()
        {

        }

        #endregion Methods

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

            WpfApplication1.DocsRoomManagementDataSet docsRoomManagementDataSet = ((WpfApplication1.DocsRoomManagementDataSet)(this.FindResource("docsRoomManagementDataSet")));
            // Lädt Daten in Tabelle "City". Sie können diesen Code nach Bedarf ändern.
            WpfApplication1.DocsRoomManagementDataSetTableAdapters.CityTableAdapter docsRoomManagementDataSetCityTableAdapter = new WpfApplication1.DocsRoomManagementDataSetTableAdapters.CityTableAdapter();
            docsRoomManagementDataSetCityTableAdapter.Fill(docsRoomManagementDataSet.City);
            System.Windows.Data.CollectionViewSource cityViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("cityViewSource")));
            cityViewSource.View.MoveCurrentToFirst();
        }


    }
}
